


import Vue from 'vue'
import Vuex from 'vuex'
import state from './state'
import mutations from './mutations'
import getters from './getters'


Vue.use(Vuex)


// let defaultCity = "天津"

// try{
//   if (localStorage.city) {
//     defaultCity = localStorage.city
//   }
// }catch(e){

// }

export default new Vuex.Store({
  // state:state,
  state,
  // mutations:mutations,
  mutations,
  actions:{
    // changeCity(ctx,city){//两个参数  上下文  传过的参数
    //   // alert(city)
    //   ctx.commit("changeCityValue",city)
    // }
  },
  // getters : getters,
  getters,
  modules:{
    
  }

})
